<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>EBVRTool Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">EBVR </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">Buyforyou</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	
	<optgroup label="Class Methods">
		
		<option value="//api/name/checkAuthorizationStatusWithType:">+ checkAuthorizationStatusWithType:</option>
		
		<option value="//api/name/colorWithHexString:">+ colorWithHexString:</option>
		
		<option value="//api/name/compressImage:limitSize:maxSide:completion:">+ compressImage:limitSize:maxSide:completion:</option>
		
		<option value="//api/name/dictionaryWithJsonString:">+ dictionaryWithJsonString:</option>
		
		<option value="//api/name/imageWithColor:">+ imageWithColor:</option>
		
		<option value="//api/name/isJailbroken">+ isJailbroken</option>
		
		<option value="//api/name/jsonFormatWithObject:">+ jsonFormatWithObject:</option>
		
		<option value="//api/name/obtainNowTime">+ obtainNowTime</option>
		
		<option value="//api/name/randomString32">+ randomString32</option>
		
	</optgroup>
	

	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">EBVRTool Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>EBVRTool.h<br />EBVRTool.m</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/imageWithColor:" title="imageWithColor:"></a>
	<h3 class="method-title"><code><a href="#//api/name/imageWithColor:">+&nbsp;imageWithColor:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>得到一张纯色背景的图片</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (UIImage *)imageWithColor:(UIColor *)<em>color</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>color</code></th>
						<td><p>图片的背景颜色</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>image</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>得到一张纯色背景的图片</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/colorWithHexString:" title="colorWithHexString:"></a>
	<h3 class="method-title"><code><a href="#//api/name/colorWithHexString:">+&nbsp;colorWithHexString:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>十六进制色值转换成颜色</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (UIColor *)colorWithHexString:(NSString *)<em>color</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>color</code></th>
						<td><p>色值</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>color</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>十六进制色值转换成颜色</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/randomString32" title="randomString32"></a>
	<h3 class="method-title"><code><a href="#//api/name/randomString32">+&nbsp;randomString32</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>随机获取32位的字符串</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (NSString *)randomString32</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>随机获取32位的字符串</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/obtainNowTime" title="obtainNowTime"></a>
	<h3 class="method-title"><code><a href="#//api/name/obtainNowTime">+&nbsp;obtainNowTime</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取系统当前时间</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (NSString *)obtainNowTime</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取系统当前时间</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/isJailbroken" title="isJailbroken"></a>
	<h3 class="method-title"><code><a href="#//api/name/isJailbroken">+&nbsp;isJailbroken</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>判断手机是否越狱</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (BOOL)isJailbroken</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>判断手机是否越狱</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/jsonFormatWithObject:" title="jsonFormatWithObject:"></a>
	<h3 class="method-title"><code><a href="#//api/name/jsonFormatWithObject:">+&nbsp;jsonFormatWithObject:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>转换成json类型字符串</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (NSString *)jsonFormatWithObject:(id)<em>obj</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>obj</code></th>
						<td><p>要转换成json字符串的数据</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>转换成json类型字符串</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/dictionaryWithJsonString:" title="dictionaryWithJsonString:"></a>
	<h3 class="method-title"><code><a href="#//api/name/dictionaryWithJsonString:">+&nbsp;dictionaryWithJsonString:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>将json字符串转换成字典</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (NSDictionary *)dictionaryWithJsonString:(NSString *)<em>jsonString</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>jsonString</code></th>
						<td><p>要转换成字典的json字符串</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>将json字符串转换成字典</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/compressImage:limitSize:maxSide:completion:" title="compressImage:limitSize:maxSide:completion:"></a>
	<h3 class="method-title"><code><a href="#//api/name/compressImage:limitSize:maxSide:completion:">+&nbsp;compressImage:limitSize:maxSide:completion:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>对图片进行压缩</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)compressImage:(UIImage *)<em>image</em> limitSize:(NSUInteger)<em>size</em> maxSide:(CGFloat)<em>length</em> completion:(void ( ^ ) ( NSData *data ))<em>block</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>image</code></th>
						<td><p>图片</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>size</code></th>
						<td><p>大小</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>length</code></th>
						<td><p>最长边
@param block</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>对图片进行压缩</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/checkAuthorizationStatusWithType:" title="checkAuthorizationStatusWithType:"></a>
	<h3 class="method-title"><code><a href="#//api/name/checkAuthorizationStatusWithType:">+&nbsp;checkAuthorizationStatusWithType:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>检查相机相册权限</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)checkAuthorizationStatusWithType:(int)<em>type</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>type</code></th>
						<td><p>0&ndash;相机 1&ndash;相册</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>检查相机相册权限</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2017 Buyforyou. All rights reserved. Updated: 2017-07-27</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>